export const diagramXML =
  `<?xml version="1.0" encoding="UTF-8"?>
    <definitions 
    xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" 
    xmlns:activiti="http://activiti.org/bpmn" 
    xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" 
    xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" 
    xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    id="sid-38422fae-e03e-43a3-bef4-bd33b32041b2" 
    targetNamespace="http://bpmn.io/bpmn" 
    exporter="bpmn-js (https://demo.bpmn.io)" 
    exporterVersion="7.3.0">
      <process id="Process_1" isExecutable="false">
        <startEvent id="Event_1olc7qh" name="开始">
          <outgoing>Flow_18dk2fh</outgoing>
        </startEvent>` +
  '<task id="Activity_137vobm" name="提交申请" activiti:assignee="${per}">' +
  '<multiInstanceLoopCharacteristics isSequential="true" activiti:collection="${rolerole1}" activiti:elementVariable="per"></multiInstanceLoopCharacteristics>' +
  `<incoming>Flow_18dk2fh</incoming>
          <incoming>Flow_0g7pfqn</incoming>
          <incoming>Flow_0iyff9a</incoming>
          <outgoing>Flow_0nqxvgo</outgoing>
        </task>
        <sequenceFlow id="Flow_18dk2fh" name="下一步1" sourceRef="Event_1olc7qh" targetRef="Activity_137vobm" />
        <exclusiveGateway id="Gateway_0ojfg97" name="团队长是否通过">
          <incoming>Flow_0nqxvgo</incoming>
          <outgoing>Flow_0viy4nx</outgoing>
          <outgoing>Flow_0g7pfqn</outgoing>
        </exclusiveGateway>
        <sequenceFlow id="Flow_0nqxvgo" name="下一步2" sourceRef="Activity_137vobm" targetRef="Gateway_0ojfg97" />
        <sequenceFlow id="Flow_0viy4nx" name="通过1" sourceRef="Gateway_0ojfg97" targetRef="Gateway_1mlekeu" />
        <exclusiveGateway id="Gateway_1mlekeu" name="主任是否通过">
          <incoming>Flow_0viy4nx</incoming>
          <outgoing>Flow_01eune1</outgoing>
          <outgoing>Flow_0iyff9a</outgoing>
        </exclusiveGateway>
        <endEvent id="Event_08i6pin" name="结束">
          <incoming>Flow_01eune1</incoming>
        </endEvent>
        <sequenceFlow id="Flow_01eune1" name="通过2" sourceRef="Gateway_1mlekeu" targetRef="Event_08i6pin" />
        <sequenceFlow id="Flow_0g7pfqn" name="不通过1" sourceRef="Gateway_0ojfg97" targetRef="Activity_137vobm" >` +
  '<conditionExpression xsi:type="tFormalExpression"><![CDATA[${approvalResult == "N"}]]></conditionExpression>' +
  `</sequenceFlow>
        <sequenceFlow id="Flow_0iyff9a" name="不通过2" sourceRef="Gateway_1mlekeu" targetRef="Activity_137vobm" />
      </process>
      <bpmndi:BPMNDiagram id="BpmnDiagram_1">
        <bpmndi:BPMNPlane id="BpmnPlane_1" bpmnElement="Process_1">
          <bpmndi:BPMNEdge id="Flow_18dk2fh_di" bpmnElement="Flow_18dk2fh">
            <omgdi:waypoint x="188" y="190" />
            <omgdi:waypoint x="280" y="190" />
            <bpmndi:BPMNLabel>
              <omgdc:Bounds x="214" y="172" width="40" height="14" />
            </bpmndi:BPMNLabel>
          </bpmndi:BPMNEdge>
          <bpmndi:BPMNEdge id="Flow_0nqxvgo_di" bpmnElement="Flow_0nqxvgo">
            <omgdi:waypoint x="380" y="190" />
            <omgdi:waypoint x="475" y="190" />
            <bpmndi:BPMNLabel>
              <omgdc:Bounds x="408" y="172" width="40" height="14" />
            </bpmndi:BPMNLabel>
          </bpmndi:BPMNEdge>
          <bpmndi:BPMNEdge id="Flow_0viy4nx_di" bpmnElement="Flow_0viy4nx">
            <omgdi:waypoint x="525" y="190" />
            <omgdi:waypoint x="712" y="190" />
            <bpmndi:BPMNLabel>
              <omgdc:Bounds x="573" y="172" width="28" height="14" />
            </bpmndi:BPMNLabel>
          </bpmndi:BPMNEdge>
          <bpmndi:BPMNEdge id="Flow_01eune1_di" bpmnElement="Flow_01eune1">
            <omgdi:waypoint x="762" y="190" />
            <omgdi:waypoint x="869" y="190" />
            <bpmndi:BPMNLabel>
              <omgdc:Bounds x="807" y="172" width="28" height="14" />
            </bpmndi:BPMNLabel>
          </bpmndi:BPMNEdge>
          <bpmndi:BPMNEdge id="Flow_0g7pfqn_di" bpmnElement="Flow_0g7pfqn">
            <omgdi:waypoint x="500" y="215" />
            <omgdi:waypoint x="500" y="270" />
            <omgdi:waypoint x="330" y="270" />
            <omgdi:waypoint x="330" y="230" />
            <bpmndi:BPMNLabel>
              <omgdc:Bounds x="396" y="252" width="39" height="14" />
            </bpmndi:BPMNLabel>
          </bpmndi:BPMNEdge>
          <bpmndi:BPMNEdge id="Flow_0iyff9a_di" bpmnElement="Flow_0iyff9a">
            <omgdi:waypoint x="737" y="165" />
            <omgdi:waypoint x="737" y="100" />
            <omgdi:waypoint x="330" y="100" />
            <omgdi:waypoint x="330" y="150" />
            <bpmndi:BPMNLabel>
              <omgdc:Bounds x="514" y="82" width="39" height="14" />
            </bpmndi:BPMNLabel>
          </bpmndi:BPMNEdge>
          <bpmndi:BPMNShape id="Event_1olc7qh_di" bpmnElement="Event_1olc7qh">
            <omgdc:Bounds x="152" y="172" width="36" height="36" />
            <bpmndi:BPMNLabel>
              <omgdc:Bounds x="159" y="148" width="22" height="14" />
            </bpmndi:BPMNLabel>
          </bpmndi:BPMNShape>
          <bpmndi:BPMNShape id="Activity_137vobm_di" bpmnElement="Activity_137vobm">
            <omgdc:Bounds x="280" y="150" width="100" height="80" />
          </bpmndi:BPMNShape>
          <bpmndi:BPMNShape id="Gateway_0ojfg97_di" bpmnElement="Gateway_0ojfg97" isMarkerVisible="true">
            <omgdc:Bounds x="475" y="165" width="50" height="50" />
            <bpmndi:BPMNLabel>
              <omgdc:Bounds x="461" y="148" width="78" height="14" />
            </bpmndi:BPMNLabel>
          </bpmndi:BPMNShape>
          <bpmndi:BPMNShape id="Gateway_1mlekeu_di" bpmnElement="Gateway_1mlekeu" isMarkerVisible="true">
            <omgdc:Bounds x="712" y="165" width="50" height="50" />
            <bpmndi:BPMNLabel>
              <omgdc:Bounds x="704" y="225" width="66" height="14" />
            </bpmndi:BPMNLabel>
          </bpmndi:BPMNShape>
          <bpmndi:BPMNShape id="Event_08i6pin_di" bpmnElement="Event_08i6pin">
            <omgdc:Bounds x="869" y="172" width="36" height="36" />
            <bpmndi:BPMNLabel>
              <omgdc:Bounds x="876" y="215" width="22" height="14" />
            </bpmndi:BPMNLabel>
          </bpmndi:BPMNShape>
        </bpmndi:BPMNPlane>
      </bpmndi:BPMNDiagram>
    </definitions>
    `;
